﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace AspDataBinding
{
    public partial class Details : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            NorthwindDataContext context = new NorthwindDataContext();
            var empDetails =
                from em in context.Employees
                where em.EmployeeID == int.Parse(Request.Params["EmployeeID"])
                select em;
            this.DetailsView.DataSource = empDetails;
            this.DetailsView.DataBind();
        }
    }
}